package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.ExternalschedulemanagementMapper;
import com.scheduling.system.domain.Externalschedulemanagement;
import com.scheduling.system.service.IExternalschedulemanagementService;

/**
 * 班次外日程管理Service业务层处理
 * 
 * 
 * @date 2025-05-07
 */
@Service
public class ExternalschedulemanagementServiceImpl implements IExternalschedulemanagementService 
{
    @Autowired
    private ExternalschedulemanagementMapper externalschedulemanagementMapper;

    /**
     * 查询班次外日程管理
     * 
     * @param id 班次外日程管理主键
     * @return 班次外日程管理
     */
    @Override
    public Externalschedulemanagement selectExternalschedulemanagementById(Long id)
    {
        return externalschedulemanagementMapper.selectExternalschedulemanagementById(id);
    }

    /**
     * 查询班次外日程管理列表
     * 
     * @param externalschedulemanagement 班次外日程管理
     * @return 班次外日程管理
     */
    @Override
    public List<Externalschedulemanagement> selectExternalschedulemanagementList(Externalschedulemanagement externalschedulemanagement)
    {
        return externalschedulemanagementMapper.selectExternalschedulemanagementList(externalschedulemanagement);
    }

    /**
     * 新增班次外日程管理
     * 
     * @param externalschedulemanagement 班次外日程管理
     * @return 结果
     */
    @Override
    public int insertExternalschedulemanagement(Externalschedulemanagement externalschedulemanagement)
    {
        return externalschedulemanagementMapper.insertExternalschedulemanagement(externalschedulemanagement);
    }

    /**
     * 修改班次外日程管理
     * 
     * @param externalschedulemanagement 班次外日程管理
     * @return 结果
     */
    @Override
    public int updateExternalschedulemanagement(Externalschedulemanagement externalschedulemanagement)
    {
        return externalschedulemanagementMapper.updateExternalschedulemanagement(externalschedulemanagement);
    }

    /**
     * 批量删除班次外日程管理
     * 
     * @param ids 需要删除的班次外日程管理主键
     * @return 结果
     */
    @Override
    public int deleteExternalschedulemanagementByIds(Long[] ids)
    {
        return externalschedulemanagementMapper.deleteExternalschedulemanagementByIds(ids);
    }

    /**
     * 删除班次外日程管理信息
     * 
     * @param id 班次外日程管理主键
     * @return 结果
     */
    @Override
    public int deleteExternalschedulemanagementById(Long id)
    {
        return externalschedulemanagementMapper.deleteExternalschedulemanagementById(id);
    }
}
